// 质检巡检
import { getAction, deleteAction, putAction, putparamsAction, postAction, httpAction } from '@/api/manage'

// 分页列表查询
const qualityInspectionList = (params) =>
  getAction('/jksaas-produce/produce/qualityInspection/qualityInspection/list', params)

//质量-质检巡检-添加
const qualityInspectionAdd = (params) =>
  postAction('/jksaas-produce/produce/qualityInspection/qualityInspection/add', params)

// 质量 - 质检巡检-批量删除
const qualityInspectionDeleteBatch = (params) =>
  deleteAction('/jksaas-produce/produce/qualityInspection/qualityInspection/deleteBatch', params)

// 质量 - 质检巡检-通过id查询
const qualityInspectionQuery = (id) =>
  getAction('/jksaas-produce/produce/qualityInspection/qualityInspection/queryById', id)

//质量 - 质检巡检-编辑
const qualityInspectionEdit = (params) =>
  putAction('/jksaas-produce/produce/qualityInspection/qualityInspection/edit', params)

// 质量 - 根据检验规范的id查询
const qualityCheckSpecification = (id) =>
  getAction('/jksaas-produce/produce/quality/qualityCheckSpecification/queryById', id)
export {
  qualityInspectionList,
  qualityInspectionAdd,
  qualityInspectionDeleteBatch,
  qualityInspectionQuery,
  qualityInspectionEdit,
  qualityCheckSpecification,
}
